package org.dromara.chicken.domain.bo;

import org.dromara.chicken.domain.FarmProcessInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 加工详情业务对象 farm_process_info
 *
 * @author MrLei QQ:235921049
 * @date 2024-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = FarmProcessInfo.class, reverseConvertGenerate = false)
public class FarmProcessInfoBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderId;

    /**
     * 商品分类
     */
    @NotNull(message = "商品分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productsCateId;

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productId;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 单价
     */
    @NotNull(message = "单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 小计
     */
    @NotNull(message = "小计不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal money;

    /**
     * 库存数量
     */
    private String stock;


}
